package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the TA_CAJA database table.
 * 
 */
@Entity
@Table(name="TA_CAJA")
public class TaCaja implements Serializable {
	private static final long serialVersionUID = 1L;
	private String coCaja;
	private BigDecimal coEmpl;
	private String coRegi;
	private String coSede;
	private String coZona;
	private String deCaja;
	private String esta;
	private TaDiarCaja taDiarCaja;

    public TaCaja() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="CO_CAJA", unique=true, nullable=false, length=2)
	public String getCoCaja() {
		return this.coCaja;
	}

	public void setCoCaja(String coCaja) {
		this.coCaja = coCaja;
	}


	@Column(name="CO_EMPL")
	public BigDecimal getCoEmpl() {
		return this.coEmpl;
	}

	public void setCoEmpl(BigDecimal coEmpl) {
		this.coEmpl = coEmpl;
	}


	@Column(name="CO_REGI", length=2)
	public String getCoRegi() {
		return this.coRegi;
	}

	public void setCoRegi(String coRegi) {
		this.coRegi = coRegi;
	}


	@Column(name="CO_SEDE", length=2)
	public String getCoSede() {
		return this.coSede;
	}

	public void setCoSede(String coSede) {
		this.coSede = coSede;
	}


	@Column(name="CO_ZONA", length=2)
	public String getCoZona() {
		return this.coZona;
	}

	public void setCoZona(String coZona) {
		this.coZona = coZona;
	}


	@Column(name="DE_CAJA", length=30)
	public String getDeCaja() {
		return this.deCaja;
	}

	public void setDeCaja(String deCaja) {
		this.deCaja = deCaja;
	}


	@Column(length=1)
	public String getEsta() {
		return this.esta;
	}

	public void setEsta(String esta) {
		this.esta = esta;
	}


	//bi-directional many-to-one association to TaDiarCaja
    @ManyToOne
	@JoinColumn(name="ID_DIAR")
	public TaDiarCaja getTaDiarCaja() {
		return this.taDiarCaja;
	}

	public void setTaDiarCaja(TaDiarCaja taDiarCaja) {
		this.taDiarCaja = taDiarCaja;
	}
	
}